package com.rd.util;

/**
 * @author qiufen
 * @description Controller层中方法使用返回值类型
 */
public enum ResponseCode {

    SUCCESS(200,"SUCCESS"),
    ERROR(500,"SERVER ERROR"),
    NEED_LOGIN(510,"NEED_LOGIN");

    private final int code;
    private final String desc;

    ResponseCode(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }

}
